package com.sanben.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sanben.project.data.req.ProjectReleaseReq;
import com.sanben.project.data.vo.ProjectReleaseVo;
import com.sanben.project.entity.ProjectRelease;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cyh
 * @description: 项目发布表 Mapper
 * @date: 2020-08-11
 */
public interface ProjectReleaseMapper extends BaseMapper<ProjectRelease> {
    /**
     * 列表分页
     *
     * @param page
     * @param req
     * @return
     */
    List<ProjectReleaseVo> page(Page<ProjectReleaseVo> page,
                                @Param("req") ProjectReleaseReq req);

    /**
     * 最新项目
     *
     * @return
     */
    List<ProjectReleaseVo> getHomeList();
}
